#ifndef _SKILL_SET_H_
#define _SKILL_SET_H_

#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/panel.h>
#include <wx/button.h>
#include <vector>
#include <wx/propgrid/propgrid.h>
#include "utility.h"
using namespace std;

class SkillSet:public wxPanel
{
public:
	SkillSet(wxWindow* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
	virtual ~SkillSet()
	{
	}
	void SetSkillList(vector<SSkill> &skillList);
private:
	void OkClick(wxCommandEvent &event);
	int GetPropertyInt(wxString name);
	float GetPropertyFloat(wxString name);
	template<typename Type> void SetVal(wxString name,Type val);
	void ClearValue();

	wxString GetActionName(ESkillType type,int id);
	
	vector<SSkill> m_skillList;

	wxPropertyGrid* m_pPG;
	wxButton *m_pOk;

	static const long ID_BUTTON1;
	static const long ID_PROPERTY;
};
#endif